package com.ztools.api.service.pc;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ztools.common.model.pc.information.InformationPoint;
import com.ztools.common.model.pc.information.InformationSignIn;
import com.ztools.common.model.pc.information.WeChatMember;
import com.ztools.common.util.common.PageUtil;

/**
 * @Author:seeTools
 * @Date: 2023/4/15  15:23
 * @Version 1.0
 */
public interface PcMemberService {

    /**
     * 获取会员粉丝信息
     *
     * @param openid openid
     * @return WeChatMember
     */
    WeChatMember getMemberInfo(String openid);


    /**
     * 签到校验
     *
     * @param memberId memberId
     * @return boolean
     */
    boolean checkSing(Long memberId);

    /**
     * 签到
     *
     * @param informationSignIn informationSignIn
     * @return boolean
     */
    boolean signIn(InformationSignIn informationSignIn);

    /**
     * 获取会员积分记录
     *
     * @param pageUtil pageUtil
     * @return InformationPoint
     */
    Page<InformationPoint> getPointRecord(PageUtil<InformationPoint> pageUtil);
}
